package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_equals_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$

    public _jet_equals_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_choose_1_3 = new TagInfo("c:choose", //$NON-NLS-1$
            1, 3,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_2_4 = new TagInfo("c:when", //$NON-NLS-1$
            2, 4,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "($bcolCount!=0 or $refcolCount!=0)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_26 = new TagInfo("c:get", //$NON-NLS-1$
            6, 26,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_5 = new TagInfo("c:get", //$NON-NLS-1$
            8, 5,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_64 = new TagInfo("c:get", //$NON-NLS-1$
            8, 64,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_118 = new TagInfo("c:get", //$NON-NLS-1$
            8, 118,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_9_5 = new TagInfo("c:iterate", //$NON-NLS-1$
            9, 5,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/physicalPrimaryKeys/column", //$NON-NLS-1$
                "physicalPrimaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_10_7 = new TagInfo("c:choose", //$NON-NLS-1$
            10, 7,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_11_7 = new TagInfo("c:when", //$NON-NLS-1$
            11, 7,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$physicalPrimaryKey/@isForeignKey='true'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_36 = new TagInfo("c:get", //$NON-NLS-1$
            12, 36,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_108 = new TagInfo("c:get", //$NON-NLS-1$
            12, 108,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_159 = new TagInfo("c:get", //$NON-NLS-1$
            12, 159,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_16_7 = new TagInfo("c:otherwise", //$NON-NLS-1$
            16, 7,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_17_36 = new TagInfo("c:get", //$NON-NLS-1$
            17, 36,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_17_105 = new TagInfo("c:get", //$NON-NLS-1$
            17, 105,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_17_156 = new TagInfo("c:get", //$NON-NLS-1$
            17, 156,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($physicalPrimaryKey/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_26_4 = new TagInfo("c:otherwise", //$NON-NLS-1$
            26, 4,
            new String[] {
            },
            new String[] {
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("\t\t");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_choose_1_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_1_3); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_choose_1_3.setRuntimeParent(null);
        _jettag_c_choose_1_3.setTagInfo(_td_c_choose_1_3);
        _jettag_c_choose_1_3.doStart(context, out);
        JET2Writer _jettag_c_choose_1_3_saved_out = out;
        while (_jettag_c_choose_1_3.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            RuntimeTagElement _jettag_c_when_2_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_2_4); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_when_2_4.setRuntimeParent(_jettag_c_choose_1_3);
            _jettag_c_when_2_4.setTagInfo(_td_c_when_2_4);
            _jettag_c_when_2_4.doStart(context, out);
            JET2Writer _jettag_c_when_2_4_saved_out = out;
            while (_jettag_c_when_2_4.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("\t\t\tpublic boolean equals(Object obj) {");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t\tif (obj == this)");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t\t\treturn true;");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t\tif (!(obj instanceof ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_6_26 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_26); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_6_26.setRuntimeParent(_jettag_c_when_2_4);
                _jettag_c_get_6_26.setTagInfo(_td_c_get_6_26);
                _jettag_c_get_6_26.doStart(context, out);
                _jettag_c_get_6_26.doEnd();
                out.write("))");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t\t\treturn false;");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t\t");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_5 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_5); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_5.setRuntimeParent(_jettag_c_when_2_4);
                _jettag_c_get_8_5.setTagInfo(_td_c_get_8_5);
                _jettag_c_get_8_5.doStart(context, out);
                _jettag_c_get_8_5.doEnd();
                out.write(" compared");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_64 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_64); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_64.setRuntimeParent(_jettag_c_when_2_4);
                _jettag_c_get_8_64.setTagInfo(_td_c_get_8_64);
                _jettag_c_get_8_64.doStart(context, out);
                _jettag_c_get_8_64.doEnd();
                out.write(" = (");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_118 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_118); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_118.setRuntimeParent(_jettag_c_when_2_4);
                _jettag_c_get_8_118.setTagInfo(_td_c_get_8_118);
                _jettag_c_get_8_118.doStart(context, out);
                _jettag_c_get_8_118.doEnd();
                out.write(") obj;");  //$NON-NLS-1$        
                out.write(NL);         
                RuntimeTagElement _jettag_c_iterate_9_5 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_9_5); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_iterate_9_5.setRuntimeParent(_jettag_c_when_2_4);
                _jettag_c_iterate_9_5.setTagInfo(_td_c_iterate_9_5);
                _jettag_c_iterate_9_5.doStart(context, out);
                while (_jettag_c_iterate_9_5.okToProcessBody()) {
                    RuntimeTagElement _jettag_c_choose_10_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_10_7); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_choose_10_7.setRuntimeParent(_jettag_c_iterate_9_5);
                    _jettag_c_choose_10_7.setTagInfo(_td_c_choose_10_7);
                    _jettag_c_choose_10_7.doStart(context, out);
                    JET2Writer _jettag_c_choose_10_7_saved_out = out;
                    while (_jettag_c_choose_10_7.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_when_11_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_11_7); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_when_11_7.setRuntimeParent(_jettag_c_choose_10_7);
                        _jettag_c_when_11_7.setTagInfo(_td_c_when_11_7);
                        _jettag_c_when_11_7.doStart(context, out);
                        JET2Writer _jettag_c_when_11_7_saved_out = out;
                        while (_jettag_c_when_11_7.okToProcessBody()) {
                            out = out.newNestedContentWriter();
                            out.write("\t\t\t\t\t\t\tif(!CheckPropertyEqual(this.");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_12_36 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_36); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_12_36.setRuntimeParent(_jettag_c_when_11_7);
                            _jettag_c_get_12_36.setTagInfo(_td_c_get_12_36);
                            _jettag_c_get_12_36.doStart(context, out);
                            _jettag_c_get_12_36.doEnd();
                            out.write(".id, compared");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_12_108 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_108); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_12_108.setRuntimeParent(_jettag_c_when_11_7);
                            _jettag_c_get_12_108.setTagInfo(_td_c_get_12_108);
                            _jettag_c_get_12_108.doStart(context, out);
                            _jettag_c_get_12_108.doEnd();
                            out.write(".");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_12_159 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_159); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_12_159.setRuntimeParent(_jettag_c_when_11_7);
                            _jettag_c_get_12_159.setTagInfo(_td_c_get_12_159);
                            _jettag_c_get_12_159.doStart(context, out);
                            _jettag_c_get_12_159.doEnd();
                            out.write(".id)) {");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t\t\treturn false;");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t\t}");  //$NON-NLS-1$        
                            out.write(NL);         
                            _jettag_c_when_11_7.handleBodyContent(out);
                        }
                        out = _jettag_c_when_11_7_saved_out;
                        _jettag_c_when_11_7.doEnd();
                        RuntimeTagElement _jettag_c_otherwise_16_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_16_7); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_otherwise_16_7.setRuntimeParent(_jettag_c_choose_10_7);
                        _jettag_c_otherwise_16_7.setTagInfo(_td_c_otherwise_16_7);
                        _jettag_c_otherwise_16_7.doStart(context, out);
                        JET2Writer _jettag_c_otherwise_16_7_saved_out = out;
                        while (_jettag_c_otherwise_16_7.okToProcessBody()) {
                            out = out.newNestedContentWriter();
                            out.write("\t\t\t\t\t\t\tif(!CheckPropertyEqual(this.");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_17_36 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_36); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_17_36.setRuntimeParent(_jettag_c_otherwise_16_7);
                            _jettag_c_get_17_36.setTagInfo(_td_c_get_17_36);
                            _jettag_c_get_17_36.doStart(context, out);
                            _jettag_c_get_17_36.doEnd();
                            out.write(", compared");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_17_105 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_105); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_17_105.setRuntimeParent(_jettag_c_otherwise_16_7);
                            _jettag_c_get_17_105.setTagInfo(_td_c_get_17_105);
                            _jettag_c_get_17_105.doStart(context, out);
                            _jettag_c_get_17_105.doEnd();
                            out.write(".");  //$NON-NLS-1$        
                            RuntimeTagElement _jettag_c_get_17_156 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_17_156); //$NON-NLS-1$ //$NON-NLS-2$
                            _jettag_c_get_17_156.setRuntimeParent(_jettag_c_otherwise_16_7);
                            _jettag_c_get_17_156.setTagInfo(_td_c_get_17_156);
                            _jettag_c_get_17_156.doStart(context, out);
                            _jettag_c_get_17_156.doEnd();
                            out.write(")) {");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t\t\treturn false;");  //$NON-NLS-1$        
                            out.write(NL);         
                            out.write("\t\t\t\t\t\t\t}");  //$NON-NLS-1$        
                            out.write(NL);         
                            _jettag_c_otherwise_16_7.handleBodyContent(out);
                        }
                        out = _jettag_c_otherwise_16_7_saved_out;
                        _jettag_c_otherwise_16_7.doEnd();
                        _jettag_c_choose_10_7.handleBodyContent(out);
                    }
                    out = _jettag_c_choose_10_7_saved_out;
                    _jettag_c_choose_10_7.doEnd();
                    _jettag_c_iterate_9_5.handleBodyContent(out);
                }
                _jettag_c_iterate_9_5.doEnd();
                out.write("\t\t\t\treturn true;");  //$NON-NLS-1$        
                out.write(NL);         
                out.write("\t\t\t}\t");  //$NON-NLS-1$        
                out.write(NL);         
                _jettag_c_when_2_4.handleBodyContent(out);
            }
            out = _jettag_c_when_2_4_saved_out;
            _jettag_c_when_2_4.doEnd();
            RuntimeTagElement _jettag_c_otherwise_26_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_26_4); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_otherwise_26_4.setRuntimeParent(_jettag_c_choose_1_3);
            _jettag_c_otherwise_26_4.setTagInfo(_td_c_otherwise_26_4);
            _jettag_c_otherwise_26_4.doStart(context, out);
            JET2Writer _jettag_c_otherwise_26_4_saved_out = out;
            while (_jettag_c_otherwise_26_4.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("\t\t\t//暂时用不上");  //$NON-NLS-1$        
                out.write(NL);         
                _jettag_c_otherwise_26_4.handleBodyContent(out);
            }
            out = _jettag_c_otherwise_26_4_saved_out;
            _jettag_c_otherwise_26_4.doEnd();
            _jettag_c_choose_1_3.handleBodyContent(out);
        }
        out = _jettag_c_choose_1_3_saved_out;
        _jettag_c_choose_1_3.doEnd();
        out.write("\t");  //$NON-NLS-1$        
    }
}
